<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('专家变动批次列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row" id="zhuanjiabiandongpici">

        <!--登录信息-->
        <input name="userid" th:value="${session.userid}" type="hidden" id="userid">
        <input name="username" th:value="${session.username}" type="hidden" id="username">
        <input name="deptid" th:value="${session.deptid}" type="hidden" id="deptid">

        <div class="col-sm-12 search-collapse">
            <form id="formId">
                <div class="select-list">
                    <ul>
                        <li>
                            <label>批次名称：</label>
                            <input type="text" name="picimingcheng" v-model="picimingcheng"/>
                        </li>
                        <!--<li>
                            <label>开始时间：</label>
                            <input type="text" class="time-input" placeholder="请选择开始时间" name="kaishishijian" v-model="kaishishijian"/>
                        </li>
                        <li>
                            <label>结束时间：</label>
                            <input type="text" class="time-input" placeholder="请选择结束时间" name="jieshushijian" v-model="jieshushijian"/>
                        </li>-->
                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" @click="bindBiandongPiciList"><i class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                        </li>
                    </ul>
                </div>
            </form>
        </div>

        <div class="col-sm-12 select-table table-striped">

            <div class="btn-group-sm" id="toolbar" role="group" style="height: 50px;line-height: 50px;">
                <a class="btn btn-success" @click="toAdd()">
                    <i class="fa fa-plus"></i> 添加
                </a>
            </div>

            <table class="table table-hover table-primary table-striped">
                <thead>
                <tr>
                    <th style="text-align: center; vertical-align: middle;">序号</th>
                    <th style="text-align: center; vertical-align: middle;">批次名称</th>
                    <th style="text-align: center; vertical-align: middle;">创建时间</th>
                    <th style="text-align: center; vertical-align: middle;">提交时间</th>
                    <th style="text-align: center; vertical-align: middle;">状态</th>
                    <th style="text-align: center; vertical-align: middle;">操作</th>
                </tr>
                </thead>
                <tbody>
                <tr v-for="(biandongpiciitem,index) in biandongpicilist"  v-if="biandongpicilist.length > 0">
                    <td style="vertical-align: middle; text-align: center;" v-text="index+1"></td>
                    <td style="vertical-align: middle; text-align: center;" v-text="biandongpiciitem.picimingcheng"></td>
                    <td style="vertical-align: middle; text-align: center;" v-text="biandongpiciitem.chuangjianshijian"></td>
                    <td style="vertical-align: middle; text-align: center;" v-text="biandongpiciitem.qidongshijian"></td>
                    <td style="vertical-align: middle; text-align: center;" v-text="biandongpiciitem.zhuangtai"></td>
                    <td style="vertical-align: middle; text-align: center;" v-text="">
                        <button class="btn btn-warning btn-rounded btn-sm" @click="toModify(biandongpiciitem.id)">修改</button>
                        <button class="btn btn-primary btn-rounded btn-sm" @click="toBiandongDetail(biandongpiciitem.id,biandongpiciitem.picimingcheng)">专家变动详情</button>
                        <button class="btn btn-danger btn-rounded btn-sm" @click="Delete(biandongpiciitem.id)">删除</button>
                    </td>
                </tr>
                <tr v-if="biandongpicilist.length == 0">
                    <td style="text-align: center; vertical-align: middle" colspan="6">查无数据</td>
                </tr>
                </tbody>
            </table>

            <!-- 编辑专家变动批次信息 -->
            <div th:replace="system/zhuanjiabiandongpici/modal_edit::biandongpici_edit"></div>
        </div>

    </div>
</div>
    <th:block th:include="include :: footer" />
     <script th:src="@{/js/system/zhuanjiabiandongpici/customzhuanjiabiandongpici.js?v=1.0}"></script>
</body>
</html>